<?php
/**
 * Created by PhpStorm.
 * User: cape
 * Date: 2017/11/14
 * Time: 8:17
 */


header('content-type:text/html;charset=utf-8');


function getExt($filename)
{
    $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
    return $ext;
}


echo getExt('1.text.html.php');
echo '<br/>';
$filename = '3.html';
echo getExt($filename);

function test1()
{
    $i = 1;
    $j = 2;
    return $i + $j;

}

var_dump(test1());
var_dump($i, $j);

echo '<hr/>';
$m = 3;
$n = 4;
function test2(){
    var_dump($m,$n);
}

test2();
